/**
  ******************************************************************************
  * @file           : XYXKC_MechDog.h
  * @author         : admin
  * @brief          : None
  * @attention      : None
  * @date           : 2024/11/14
  ******************************************************************************
  */

#ifndef XYXKC_MECHDOG_H
#define XYXKC_MECHDOG_H
#include "Arduino.h"
#include "SoftwareSerial.h"

class XYXKC_MechDog {
public:
    XYXKC_MechDog(uint8_t rx,uint8_t tx);
    ~XYXKC_MechDog();
    void begin();
    void runningAction(int actionNumber);
    void motion(int motionNumber);
    void ultrasonicObstacleAvoidance(int boolNumber);
    int getUltrasonic();
    int getElectricityLevel();
private:
    SoftwareSerial  *m_serial;
};


#endif //XYXKC_MECHDOG_XYXKC_MECHDOG_H
